//
//  MyRankInfoModel.m
//  CoolTennisBall
//
//  Created by Coollang on 2017/7/27.
//  Copyright © 2017年 CoolLang. All rights reserved.
//

#import "MyRankInfoModel.h"

@implementation MyRankInfoModel

+ (instancetype)myRankinfoModelWithDict:(NSDictionary *)dict {
    MyRankInfoModel *model = [[MyRankInfoModel alloc] initWithDictionary:dict];
    return model;
}

-(instancetype)initWithDictionary:(NSDictionary *)dic{
    if ([super init]) {
        _number   = [dic[@"Number"] integerValue];
        _userName = dic[@"UserName"];
        _maxspeed = dic[@"MaxSpeed"];
        _userID = dic[@"UserID"];
        _totalCount = dic[@"TotalCount"];
        _headIcon = dic[@"Icon"];
        _duration = dic[@"Duration"];
        _signature = dic[@"Signature"];
        _maxScore = dic[@"Score"];
        
        _rankChange = [dic[@"Change"] integerValue];
        _likes = dic[@"Likes"];
        _likeUserList = dic[@"LikeUserList"];
    }
    
    return self;
}

@end
